﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace 简单了解WinForm
{
    public partial class TestForm : Form
    {
        public TestForm()
        {
            InitializeComponent();
        }

        private void TestForm_MouseClick(object sender, MouseEventArgs e)
        {
            Console.WriteLine("鼠标点击按钮了");
        }

        private void TestForm_Load(object sender, EventArgs e)
        {
            this.BackColor = Color.Red;
        }

        private void TestForm_Click(object sender, EventArgs e)
        {
            this.BackColor = Color.Green;
        }

        private void TestForm_DoubleClick(object sender, EventArgs e)
        {
            this.BackColor = Color.Blue;
        }
    }
}
